require("../../public/css/normalize.css")
require("../../public/css/common.css")
require("../../libs/font/iconfont.css")
require("./quality.less")
require("../../libs/swiper/swiper-bundle.min.css")
const Swiper = require('../../libs/swiper/swiper-bundle.min.js');
const tools = require("../../public/js/tools.js")
const axios = require("axios")
window.addEventListener("DOMContentLoaded", function () {
  var mySwiper = new Swiper('.swiper', {
    // direction: 'vertical', // 垂直切换选项
    loop: true, // 循环模式选项
    autoplay: true,
    // 如果需要分页器
    pagination: {
      el: '.swiper-pagination',
    },
    // 如果需要前进后退按钮
    // navigation: {
    //   nextEl: '.swiper-button-next',
    //   prevEl: '.swiper-button-prev',
    // },
    // 如果需要滚动条
    // scrollbar: {
    //   el: '.swiper-scrollbar',
    // },
  })

  window.addEventListener("scroll", function () {
    let header = document.querySelector("header")
    if (window.scrollY > 120) {
      header.style.backgroundColor = "#f4f4f4"
      header.style.color = "#1a1819"
    } else {
      header.style.backgroundColor = "transparent"
    }
  })
  let fh = this.document.querySelector(".fh")
  fh.addEventListener("click", function () {
    history.back()
  })
})